package com.blueheart.Test.util;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

public class LinkedListTest {

    public static void main(String[] args) {
        LinkedList<String> l = new LinkedList<>();
        System.out.println(l.size());
        l.add("aaa");
        String[] ass = {"a","b","c"};
        l.addAll(Arrays.asList(ass));

        String peek = l.peek();
        String poll = l.poll();
        l.push("abc");
        String s = l.pollFirst();
        String s1 = l.pollLast();


    }

}
